<template>
  <div id="notice">
    <div class="mt15">
      <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
        <el-tab-pane label="新消息" name="New">
          <p>新消息</p>
          <New></New>
        </el-tab-pane>
        <el-tab-pane label="用户通知" name="Service">
          <p>用户通知</p>
          <Service></Service>
        </el-tab-pane>
        <el-tab-pane label="公告" name="Notice">
          <p>公告</p>
          <Notice></Notice>
        </el-tab-pane>
      </el-tabs>
      <!-- <router-view></router-view> -->
    </div>
  </div>
</template>

<script>
import New from "./new"; //新消息
import Service from "./service.vue"; //服务通知
import Notice from "./notice.vue"; //公告

export default {
  data() {
    return {
      activeName: "New"
    };
  },
  methods: {
    handleClick(tab, event) {
     
    }
  },
  components: {
    Notice,
    Service,
    New
  }
};
</script>

<style scoped>
#notice {
  width: 1080px;
  min-height: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 标题 */
.el-tab-pane {
  float: left;
  width: 100%;
}
.el-tab-pane p {
  float: left;
}
</style>
